﻿using Camc.Quality.RecordTable.FormBase;
using Camc.Quality.RecordTable.FormClass;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Camc.Quality.RecordTable.FormEntity
{
    public class 质量控制记录表 : TableBase
    {
        public 质量控制记录表(int serialNum, Guid workStepEntityId, Guid processesEntityId, int sort)
        {
            SerialNum = serialNum;
            Sort = sort;
            WorkStepEntityId = workStepEntityId;
            ProcessesEntityId = processesEntityId;
        }
        public override string FormName { get; protected set; } = "质量控制记录表";

        public InspectionSignatureEntity SetInspectionSignature(InspectionSignatureEntity entity)
        {
            entity.InspectionSignatureName = "三检";
            entity.SetFirstOperator(null, "操作者", true, true, 0, null, "操作者操作时间", true, true, 0);
            entity.SetSecondOperator(null, "互检", true, true, 0, null, "互检操作时间", true, true, 0);
            entity.SetThirdOperator(null, "检验员", true, true, 0, null, "检验员操作时间", true, true, 0);
            //entity.SetFourthOperator(null, "工组长", true, true, 0, null, "工组长操作时间", true, true, 0);
            //entity.SetFifthOperator(null, "检验员", true, true, 0, null, "检验员操作时间", true, true, 0);
            return entity;

        }
    }
}
